#!/usr/bin/env bash

echo "TaskStart running inside local cline/.clinerules/hooks/ directory"

input=$(cat)
echo $input | jq .

for i in {1..5}; do
  sleep 1
  echo "$i"
done

cat <<EOF
{
  "cancel": false,
  "contextModification": "TaskStart response from the local cline/.clinerules/hooks/ directory.",
  "errorMessage": "TaskStart hook custom errorMessage"
}
EOF
